using System;
using System.Collections.Generic;
using System.Text;


using NUnit.Framework;

using ILIMS.Data.Dao;

namespace ILIMS.Data.Dao
	
{

    public class DaoBaseTestCase
    {
    
		// The following values are used as test data in associated NUnit
		// tests which implement NUnitBase.
		
		/// <summary>
		/// Test data for a Datetime object set to 23rd July 1980
		/// </summary>
		public static readonly DateTime TestDateTime = new DateTime ( 1980, 07, 23 );
		
		/// <summary>
		/// Test data for a Guid object set to an empty guid.
		/// </summary>		
		public static readonly Guid TestGuid = Guid.NewGuid ( );
		
		
		/// <summary>
		/// An example test string. If your system is to support other encoding
		/// types you should modify to include them.
		/// </summary>		
		public const string Teststring = "~!@#$%^&;*()_+`1234567890-={}|:\"<>" +
			"?[]\\;',./qwertyuiopasdfghjklxcvbnm,QWERTYUIOPASDFGHJKLZXCVBNM";		
		
		/// <summary>
		/// Test data for a integer set to integer maxiumum value
		/// </summary>
		public const int Testint = int.MaxValue;
		
		/// <summary>
		/// Test data for a double set to double maxiumum value
		/// </summary>		
		public const double Testdouble = double.MaxValue;
		
		/// <summary>
		/// Test data for a float  set to float maxiumum value
		/// </summary>
		public const float Testfloat = float.MaxValue;
		
		/// <summary>
		/// Test data for a bool set to true
		/// </summary>
		public const bool Testbool = true;
	
	
	
    

        [TestFixtureSetUp]
        public void TestFixtureSetup ( )
        {
            log4net.Config.XmlConfigurator.Configure ( ) ;
	    
            SessionManager.Instance.BeginTransaction ( );
        }


        [TestFixtureTearDown]
        public void TestFixtureTearDown ( )
        {
            
            SessionManager.Instance.RollbackTransaction ( );
        }


    }

}


	
